package com.holly.unit.system.modular.loginlog.times;

import com.holly.unit.log.api.LogManagerApi;
import com.holly.unit.timer.api.TimerAction;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class SysLogTimer implements TimerAction {
    @Resource
    private LogManagerApi logManagerApi;

    @Override
    public void action(String params) {
        if(params!=null && params!=""){
            Integer day=Integer.parseInt(params);
            logManagerApi.delAllDay(day);
        }
    }

}
